home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
profnd20.zip
/
PROFIND.DOC
< prev
next >
Wrap
Text File
|
1992-01-20
|
3KB
|
72 lines
The PCBFIND program consist of three programs:
PCBFINST.COM allows you to install the path to your download paths file.
It expect to find PCBFND.COM in the same directory and will add info
so that PCBFND always locates the DLPATH file properly.
The program believes what you tell it--it doesn't check existance to
allow you to configure it on a machine it won't run on. Don't rename
PCBFND.COM until after this program has bee run and then only if you
are using 4DOS, which provides %0 via the CMDLINE environment variable.
Typical Processing:
C:>PCBFND
Enter the complete path\filename the program will use.
This program installs the location of PCB's DLPATH.LST file.
Old Configuration: z:\c\bbs\gen\dlpath.lst
Enter New Path\Filename: p:\bbs\gen\dlpath.lst
PCBFND.COM will locate any group of files across the DIRS and searchs
all dirs. You can use any combination of wildcard characters you
wish to perform the search
PROFND.COM is a version that limit the matches to 20. You may patch
it for a different value. The patch point is at the location
"■20■" and 20■ may be patched to any value you wish. The first ■
cannot hold a value. The program also expects to find/use:
Z:\C\BBS\GEN\DLPATH.LST
It may also be patched and 20-trailing spaces are provided to
even longer locations. Any shortened ones should have spaces after.
Chr$(0) is not a terminator and all trailing space must be spaces.
This version does not show the path for possible security reasons.
PROFND also does away with extensions so if the caller puts in
XFERLIST.ZIP it will search for XFERLIST.*. This is to be
consistant with Prodoor lookups for dups.
The following ProDoor script was provided by Dave Navarro:
@echo off
rem -- Parameters passed to PROFIND.BAT
rem -- %1-Port, %2-Result File, %3-Search Spec
rem -- Your PROXMAIN entry should be:
rem -- 0,FIND,EXEC-PROFIND.BAT $N$ $R$
rem -- The following is a 4DOS command to see if the third parameter
rem -- exists. If not, it displays the error message.
if %@len[%3]==0 goto error
proecho %1 ~Searching for %3...
pcbfnd %3 > %2
if errorlevel == 1 echo Opps, you've a configuration error, Mr. Sysop.
goto end
:error
proecho %1 ~Error: You must include a filename or filespec~~
:end
If you want to see more of these little utilities, send a postcard to:
Ken Prevo
15303 Colfax
Lowell, IN 46356 (BBS: 219-696-3415 HST DS)
As the sysop of The Toolkit BBS, I write any number of this kind of
program and am happy to share but would appreciate knowing if anyone
else got any use out of them.
ERRATA:
1.0 Called PCBFND10 -- original release
1.1 Added honoring name change if 4DOS
2.0 Added PROFND.COM for PRDOOR use.
Changed name of PCBFND10 to PROFND20 to indicate ProDoor usage